package com.lync.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lync.domain.ExamPaper;

import java.util.List;

public interface ExamPaperService extends IService<ExamPaper> {

    //保存
    boolean save(ExamPaper examPaper);

    //修改
    boolean modify(ExamPaper examPaper);
    //删除
    boolean delete(Integer id);

   //按id查询
   ExamPaper  getById(Integer id);

    //分页
    IPage<ExamPaper > getPage(int currentPage, int pageSize);

    IPage<ExamPaper > getPage(int currentPage, int pageSize,ExamPaper examPaper);
    //查询全部
    public List<ExamPaper> getAll();
}
